<%@ page language="java" import="java.util.*"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<style>
body{
 background:
}
</style>
<body>
<form action="3.jsp">
请输入背景色：<input type="text" name="color"><br>
请输入字号大小：<input type="text" name="size"><br>
请输入表格宽度：<input type="text" name="width"><br>
情输入边框：<input type="text" name="soild"><br>
<button type="submit">提交</button>
</form><br>
<%
	String color=request.getParameter("color");
	pageContext.setAttribute("color", color);
	String size=request.getParameter("size");
	pageContext.setAttribute("size", size);
	String width=request.getParameter("width");
	pageContext.setAttribute("width", width);
	String soild=request.getParameter("soild");
	pageContext.setAttribute("soild", soild);
%>
<table border="${soild}">
    <tr>
        <td>表格</td>
        <td>表格</td>
    </tr>
    <tr>
        <td>表格</td>
        <td>表格</td>
    </tr>
</table>
<style>
body{
	background:#${color};
}
table{
	font-size:${size}px;
	width:${width}px;
}
</style>
</body>
</html>